package com.jf3q.sup.vo.products;

import lombok.Data;

import java.util.List;

@Data
public class ProductsEchartsVo {

    private Title title;
    private XAxis xAxis;
    private List<Series> series;

    // 构造函数
    public ProductsEchartsVo(Title title, XAxis xAxis, List<Series> series) {
        this.title = title;
        this.xAxis = xAxis;
        this.series = series;
    }

    public ProductsEchartsVo() {
    }

    // 内部类 Title
    public static class Title {
        private String subtext;

        // 构造函数
        public Title(String subtext) {
            this.subtext = subtext;
        }

        // Getter 和 Setter 方法
        public String getSubtext() {
            return subtext;
        }

        public void setSubtext(String subtext) {
            this.subtext = subtext;
        }
    }

    // 内部类 XAxis
    public static class XAxis {
        private List<String> data;

        // 构造函数
        public XAxis(List<String> data) {
            this.data = data;
        }

        // Getter 和 Setter 方法
        public List<String> getData() {
            return data;
        }

        public void setData(List<String> data) {
            this.data = data;
        }
    }

    // 内部类 Series
    public static class Series {
        private String type;
        private List<Integer> data;

        // 构造函数
        public Series(String type, List<Integer> data) {
            this.type = type;
            this.data = data;
        }

        // Getter 和 Setter 方法
        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<Integer> getData() {
            return data;
        }

        public void setData(List<Integer> data) {
            this.data = data;
        }
    }
}
